package com.cx.service.wjr.impl;

import com.cx.mapper.SiteMapper;
import com.cx.pojo.Site;
import com.cx.pojo.SiteExample;
import com.cx.service.wjr.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminSiteServiceImpl implements SiteService {
    @Autowired
    SiteMapper siteMapper;

    public List<Site> select(Site site) {
        return null;
    }

    public Site selectByName(Site site) {
        return null;
    }

    public int addCourier(Site site) {
        return siteMapper.insert(site);
    }

    @Override
    public int delete(SiteExample site) {
        return siteMapper.deleteByExample(site);
    }

    @Override
    public int update(Site site, SiteExample siteExample) {
        return 0;
    }

    @Override
    public List<Site> selectByExample(SiteExample siteExample) {
        return siteMapper.selectByExample(siteExample);
    }
}
